from .models import *
from rest_framework.serializers import ModelSerializer


# 新闻表的序列化
class JournalismSer(ModelSerializer):

    class Meta:
        model = Journalism
        fields = '__all__'


# 广告表的序列化
class AdvertisingSer(ModelSerializer):
    class Meta:
        model = Advertising
        fields = '__all__'
